﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Menu_image.aspx.cs" Inherits="WeChat.Menu_image" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
   <title>菜谱图片</title>
    <script src="Script/jquery-1.8.3.min.js"></script>
    <script src="Script/jquery.min.js"></script>
    <script type="text/javascript">

        $(document).ready(function () {
            //查询图片赋值
            //getMyImages();
            getMyImages3();
          //  getMyImages2();
        });

        function getMyImages2() {

            var jsonData = [
            { "date": "2025-05-30", "foodTime": "dinner", "money": 10 },
            { "date": "2025-05-30", "foodTime": "breakfast", "money": 2.9}
            ];

            var data = { "amount": 12.9, "orderList": JSON.stringify(jsonData) };
            var ss = JSON.stringify(data); 
            $.ajax({
                type: "post",
                url: "OrderMealManageSubSystem/OrderParameterSetting.ashx",
                data: { functionName: "SetOrderParameterSetting", data: JSON.stringify(data) },
                dataType: "json",
                success: function (data) {
                    console.log(data);
                    var json = JSON.parse(data.rows);
                    //alert("data:" + json);
                    //赋值图片
                    // $("#Img").append('<div style="width:100%;text-align:center; height:800px;"><img style="width:80%;height:600px;" src="../' + json + '" /></div>');
                    // $("#Img").css("background-image", "url(" + json + ")");

                    $("#meuimages").css("display", "block")
                    $("#meuimages").attr("src", "../" + json)
                }
            })
        }

       function getMyImages3() {
            $.ajax({
                type: "post",
                url: "OrderMealManageSubSystem/OrderParameterSetting.ashx",
                data: { functionName: "GetOrderParameterSetting" },
                dataType: "json",
                success: function (data) {
                    console.log(data);
                    var json = JSON.parse(data.rows);
                    //alert("data:" + json);
                    //赋值图片
                   // $("#Img").append('<div style="width:100%;text-align:center; height:800px;"><img style="width:80%;height:600px;" src="../' + json + '" /></div>');
                   // $("#Img").css("background-image", "url(" + json + ")");

                        $("#meuimages").css("display", "block")
                        $("#meuimages").attr("src", "../" + json)
                }
            })
        }

            function getMyImages() {
            $.ajax({
                type: "post",
                url: "MenuReserveHandler.ashx",
                data: { funcname: "getMyImages" },
                dataType: "json",
                success: function (data) {
                    console.log(data);
                    var json = JSON.parse(data.rows);
                    //alert("data:" + json);
                    //赋值图片
                   // $("#Img").append('<div style="width:100%;text-align:center; height:800px;"><img style="width:80%;height:600px;" src="../' + json + '" /></div>');
                   // $("#Img").css("background-image", "url(" + json + ")");

                        $("#meuimages").css("display", "block")
                        $("#meuimages").attr("src", "../" + json)
                }
            })
        }
    </script>
</head>
<body>
            <h1 style="width:100%;text-align:center; line-height:50px; margin-top:80px; font-size:50px;">菜谱图片</h1>
           <div id="flex_item8761760" class="weui-flex_item weui-flex_item8761760  weui-card " style="flex-basis:auto;margin: 10px !important;padding: 0px !important;width:100%;"> 
             <img src="" id="meuimages" onerror="imgError(this);" class="weui-media-box__thumb" mode="scaleToFill" style="width:100%;height:100%;" />
           </div> 

</body>
</html>
